package com.orkasgb.framework.transaction;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class TransactionTestAService {

	@Resource
	TransactionTestDao transactionTestDao;

	@Resource
	TransactionTestBService bService;

	@Transactional(rollbackFor = Exception.class)
	public void update() {

		transactionTestDao.update(1001, "test");

		bService.update(1002, "test");
	}
}
